package org.jeecg.basic.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 工位配置
 * @Author: LiCY
 * @Date: 2023-06-17
 * @Version: V1.0
 */
@Data
@TableName("mes_line_stn_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_line_stn_cfg对象", description = "工位配置")
public class MesLineStnCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 产线/产线组
     */
    @Excel(name = "产线/产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线/产线组")
    @MppMultiId
    @TableField(value = "line")
    private String line;
    /**
     * 工位
     */
    @Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    @MppMultiId
    @TableField(value = "op")
    private String op;
    /**
     * 工站
     */
    @Excel(name = "工站", width = 15)
    @ApiModelProperty(value = "工站")
    @MppMultiId
    @TableField(value = "stn")
    private String stn;
    /**
     * 设备编号
     */
    @Excel(name = "设备编号", width = 15)
    @ApiModelProperty(value = "设备编号")
    private String eqpno;
    /**
     * 允许重复次数
     */
    @Excel(name = "允许重复次数", width = 15)
    @ApiModelProperty(value = "允许重复次数")
    private BigDecimal repeatLimit;
    /**
     * 允许返工次数
     */
    @Excel(name = "允许返工次数", width = 15)
    @ApiModelProperty(value = "允许返工次数")
    private BigDecimal reworkLimit;
    /**
     * 允许等待时间
     */
    @Excel(name = "允许等待时间", width = 15)
    @ApiModelProperty(value = "允许等待时间")
    private BigDecimal waittimeLimit;
    /**
     * 操作工是否登录
     */
    @Excel(name = "操作工是否登录", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "操作工是否登录")
    private String oprlogon;
    /**
     * 是否生效
     */
    @Excel(name = "是否生效", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否生效")
    private String oprvalidate;
    /**
     * 物料警戒数量
     */
    @Excel(name = "物料警戒数量", width = 15)
    @ApiModelProperty(value = "物料警戒数量")
    private BigDecimal replenishLimit;
    /**
     * 自动换型
     */
    @Excel(name = "自动换型", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "自动换型")
    private String automodelchg;
    /**
     * 是否检查物料
     */
    @Excel(name = "是否检查物料", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否检查物料")
    private String lotchange;
    /**
     * 限制检查
     */
    @Excel(name = "限制检查", width = 15, dicCode = "MesLineStnCfg_LimitCheck")
    @Dict(dicCode = "MesLineStnCfg_LimitCheck")
    @ApiModelProperty(value = "限制检查")
    private String limitCheck;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;

    /**
     * 排序
     */
    @Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer sequence;
}
